<?xml version="1.0"?>
<?xml-stylesheet href="./no-cache-xslt.php" type="text/xsl"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" type="text/css" href="./no-cache-css.php" />
</head>
<body>
<div id="markred">This text should be red.</div>
<div id="markgreen" style="">This text should be green.</div>
<script>
window.addEventListener("message", function() {
    const divRed = document.getElementById("markred");
    const divGreen = document.getElementById("markgreen");
    var styleRed = getComputedStyle(divRed, ""); 
    var styleGreen = getComputedStyle(divGreen, ""); 
    window.top.postMessage(window.name + " " + styleRed.color.toString() + " " + styleGreen.color.toString(), "*");
});
</script>
</body>
</html>
